Keysight Pathwave 89600 VSA .NET API
C# Power Spectrum Measurement Demo
Send Feedback
Example Programs > C# Power Spectrum Measurement Demo

Glossary Item Box

This program is an example of how to set up a power spectrum measurement. The program also shows you how to identify peaks in a trace.

The project files, which can be opened by Microsoft Visual Studio 2010 or newer can be found in the following directory:

%PROGRAMFILES%\Keysight\89600 Software 20xx\89600 VSA Software\Examples\DotNET\C#\PowerSpectrum

where 20xx is the version number of the 89600 VSA.

You will need to copy the contents of the Examples directory to your Documents directory or some other location that is writable before compiling and running the example programs since the contents of the VSA installation directory are read-only. The examples depend on API interfaces under the Interfaces directory of your VSA software installation, so you may also need to repair references to these interfaces before the example will run.

Checking Hardware Support for Power Spectrum Measurement

The power spectrum measurement is not supported by all instruments, so it is important to check that the current hardware configuration supports a power spectrum measurement. This can be achieved by testing the Measurement.IsSupportedBySelectedAnalyzer property, as seen in the example. Note that the measurement is first set to power spectrum, and then the test is performed to determine whether hardware will support the measurement, rather than testing whether the hardware supports power spectrum and then setting the measurement type. This is how the test should be performed.